Optimal Doubly Logarithmic Parallel Algorithms Based on Finding All Nearest Smaller Values

نویسندگان

  • Omer Berkman
  • Baruch Schieber
  • Uzi Vishkin
چکیده

The all nearest smaller values problem is deened as follows. Let A = (a 1 ; a 2 ; : : :; a n) be n elements drawn from a totally ordered domain. For each a i , 1 i n, nd the two nearest elements in A that are smaller than a i (if such exist): the left nearest smaller element a j (with j < i) and the right nearest smaller element a k (with k > i). We give an O(loglog n) time optimal parallel algorithm for the problem on a CRCW PRAM. We apply this algorithm to achieve optimal O(loglog n) time parallel algorithms for four problems: (i) Triangulating a monotone polygon, (ii) Preprocessing for answering range minimum queries in constant time, (iii) Reconstructing a binary tree from its inorder and either preorder or postorder numberings, (vi) Matching a legal sequence of parentheses. We also show that any optimal CRCW PRAM algorithm for the triangulation problem requires (loglog n) time.

برای دانلود متن کامل این مقاله و بیش از 32 میلیون مقاله دیگر ابتدا ثبت نام کنید

ثبت نام

اگر عضو سایت هستید لطفا وارد حساب کاربری خود شوید

منابع مشابه

Lower Bounds for Constant Depth Circuits for Preex Problems, in Proc. of 10th International 5. Conclusion and Open Problems

Some doubly logarithmic parallel algorithms based on nding all nearest smaller values, Tech. Optimal doubly logarithmic parallel algorithms based on nding all nearest smaller values. Randomized range-maxima 21 Complexity of the preprocessing algorithm: O(I m (n)) time using n=I m (n) processors and O(n) space. Retrieval of a range-maximum query takes O(m) time using one processor. Theorem 4.1 a...

متن کامل

Optimal Parallel Approximation Algorithms for Prefix Sums and Integer Sorting (Extended Abstract)

Ragde. Triply-logarithmic upper and lower bounds for minimum, range minima, and related problems with integer inputs. Optimal doubly logarithmic parallel algorithms based on nding all nearest smaller values. Optimal sub-logarithmic time integer sorting on a CRCW PRAM (note). Submitted for publication, 1991. 27] Sandeep Sen. Finding an approximate median with high probability in constant paralle...

متن کامل

All Nearest Smaller Values on the Hypercube

Given a sequence of n elements, the All Nearest Smaller Values (ANSV) problem is to nd, for each element in the sequence, the nearest element to the left (right) that is smaller, or to report that no such element exists. Time and work optimal algorithms for this problem are known on all the PRAM models 3], 5], but the running time of the best previous hypercube algorithm 6] is optimal only when...

متن کامل

Highly Parallelizable Problems

of Results. We establish that several problems are highly parallelizable. For each of these problems, we design an optimal O (loglogn ) time parallel algorithm on the Common CRCW PRAM model which is the weakest among the CRCW PRAM models. These problems include: g all nearest smaller values, g preprocessing for answering range maxima queries, g several problems in Computational Geometry, g stri...

متن کامل

Triply-Logarithmic Parallel Upper and Lower Bounds for Minimum and Range Minima over Small Domains

We consider the problem of computing the minimumof n values and several well known generalizations pre x minima range minima and all nearest smaller values or ansv for input elements drawn from the integer domain s where s n In this paper we give simple and e cient algorithms for all of the above problems These algorithms all take O log log log s time using an optimal number of processors and O...

متن کامل

ذخیره در منابع من


  با ذخیره ی این منبع در منابع من، دسترسی به آن را برای استفاده های بعدی آسان تر کنید

برای دانلود متن کامل این مقاله و بیش از 32 میلیون مقاله دیگر ابتدا ثبت نام کنید

ثبت نام

اگر عضو سایت هستید لطفا وارد حساب کاربری خود شوید

عنوان ژورنال:
  • J. Algorithms

دوره 14  شماره 

صفحات  -

تاریخ انتشار 1993